<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Page extends Controller{
	/**
	 * Attributes
	 * */
	public $request = NULL;
	public $page_title="";
	public $page_view='';
	public $scripts = array();
	
	public function __construct(Request $request, $page_title,$page_view){
		$this->request = $request;
		$this->page_title = $page_title;
		$this->page_view = $page_view;
	}
	
	public function action_index(){
		$view = View::factory($pageview);
		$view->pagetitle = $this->page_title;
		$view->scripts = $this->scripts;
	
		$this->request->response = $view->render();
	}
} // End PAGE ?>

